<#-- 医联体配置页面 -->
<#import layoutTemplet as layout>
<#assign contextPath=request.getContextPath()>
<#-- 调用布局指令 -->
<@layout.html>
<#escape x as x?html>
<#-- 导航区 -->
<div class="breadcrumbs ace-save-state breadcrumbs-fixed" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <span class="grey">主数据</span>
        </li>
        <li class="active">
            <span class="grey">机构信息</span>
        </li>
    </ul>
    <div class="nav-search" id="nav-search">
        <button class="mfui-btn mfui-btn-primary mfui-btn-sm" id="headGoBackBtn">　返回　</button>
    </div>
</div>
<div class="page-content">
    <div class="page-header">
        <h1>
            机构信息
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                合同
            </small>
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                ${orgInfo.orgName!}
            </small>
        </h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <input type="hidden" id="uniqueNo" name="uniqueNo" value="${orgInfo.uniqueNo!}" />
                <div class="row">
                    <div class="col-xs-12">
                        <div class="widget-box collapsed">
                            <div class="widget-header">
                                <h5 class="widget-title"><i class="ace-icon fa fa-search"></i> 查询条件</h5>
                                <div class="widget-toolbar">
                                    <a href="#" data-action="collapse">
                                        <i class="ace-icon fa fa-chevron-down"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <form id="searchForm" class="form-horizontal">
                                        <div class="form-group">
                                            <div class="col-md-3">
                                                <div class="input-group">
                                                    <label for="contractTypeCode" class="input-group-addon">合同类型</label>
                                                    <select class="form-select2" id="contractTypeCode" name="contractTypeCode">
                                                        <option value="">请选择</option>
                                                        <#list ContractTypeEnum as element>
                                                            <option value="${element.index}">${element.name}</option>
                                                        </#list>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="col-md-3">
                                                <div class="input-group">
                                                    <label for="failureDataBegin" class="input-group-addon">失效时间起</label>
                                                    <input class="form-control form-cnd" id="failureDataBegin" name="failureDataBegin" type="text" readonly>
                                                </div>
                                            </div>
                                            <div class="col-md-3">
                                                <div class="input-group">
                                                    <label for="failureDataEnd" class="input-group-addon">失效时间止</label>
                                                    <input class="form-control form-cnd" id="failureDataEnd" name="failureDataEnd" type="text" readonly>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <div class="widget-toolbox padding-8 clearfix">
                                    <button class="mfui-btn mfui-btn-normal" id="queryBtn">
                                        查询
                                    </button>
                                    <button class="mfui-btn mfui-btn-primary" id="resetBtn">
                                        清空
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5 class="widget-title">
                                    <i class="ace-icon fa fa-list-alt"></i>
                                    数据列表
                                </h5>
                                <#--<div class="widget-toolbar">-->
                                    <#--<a href="#" data-action="collapse">-->
                                        <#--<i class="ace-icon fa fa-chevron-up"></i>-->
                                    <#--</a>-->
                                <#--</div>-->
                                <div class="widget-toolbar">
                                    <span class="label bg-yellow">即将失效</span>
                                    <span class="label bg-red">已经失效</span>
                                </div>
                            </div>
                            <div class="widget-body">
                                <div class="widget-toolbox padding-8 clearfix">
                                    <button id="addBtn" class="mfui-btn mfui-btn-normal">
                                        新增
                                    </button>
                                </div>
                                <div class="jqgrid-container">
                                    <table id="gridTable"></table>
                                    <div id="gridPager"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<#-- 新增合同 -->
<div id="add-content" style="display: none;">
    <div class="col-xs-12">
        <form id="addForm" class="form-horizontal">
            <div class="form-group"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="contractTypeCode_I">
                    <span class="red">*</span> 合同类型
                </label>
                <div class="col-sm-6">
                    <select class="form-select2" id="contractTypeCode_I" name="contractTypeCode_I" data-rule="required">
                        <option value="">请选择</option>
                        <#list ContractTypeEnum as element>
                            <option value="${element.index}">${element.name}</option>
                        </#list>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="contractAmount_I">
                    <span class="red">*</span> 合同金额
                </label>
                <div class="col-sm-6">
                    <input type="text" class="form-control col-sm-12" id="contractAmount_I" name="contractAmount_I" data-rule="required" maxlength="50" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="effectiveData_I">
                    <span class="red">*</span> 生效时间
                </label>
                <div class="col-sm-6">
                    <input type="text" class="form-control col-sm-12" id="effectiveData_I" name="effectiveData_I" data-rule="required" maxlength="50" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="failureData_I">
                    <span class="red">*</span> 失效时间
                </label>
                <div class="col-sm-6">
                    <input type="text" class="form-control col-sm-12" id="failureData_I" name="failureData_I" data-rule="required" maxlength="50" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label no-padding-right" for="remark_I">
                    备注
                </label>
                <div class="col-sm-6">
                    <textarea class="form-control col-sm-12" id="remark_I" name="remark_I"></textarea>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="${contextPath}/public/js/opt/org/org_info_config_contract.js"></script>
</#escape>
</@layout.html>